#!/usr/bin/env python3
# coding:utf-8
import time
import os
print(f"工作目录: {os.getcwd()}")
print(f"代码位置: {os.path.abspath(__file__)}")

import debugpy
debugpy.listen(6688)
debugpy.wait_for_client()

def cal_sum(num: int):
    i: int = 0
    sum: int = 0
    while i < num:
        sum += i
        i += 1
        time.sleep(0.5)
    return sum

print("计算1-10的和: ",cal_sum(10))